package com.etc.test2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.etc.test1.BookController;
import com.etc.test3.A;

public class TestMainAOp {

    public static void main(String[] args) {
        ApplicationContext contex = new ClassPathXmlApplicationContext("applicationContext.xml");
        
        A a = contex.getBean(A.class); // a是代理
        a.aaa();
        
        BookController c = contex.getBean(BookController.class); // 不是代理
        System.out.println(c.toString());
    }
}
